package loan.calc.constant.dict.rate;

import lombok.Getter;
import loan.calc.constant.dict.base.BaseDictEnum;
import loan.calc.constant.dict.base.DictEnum;

@DictEnum(value = "RateUnit",description = "利率单位")
@Getter
public enum RateUnitEnum implements BaseDictEnum {

    YEAR_RATE("年利率", 9),
    MONTH_RATE("月利率", 12),
    DAY_RATE("日利率", 15),
    ;
    ;
    private final String value;

    private final String description;

    private final int scale;



    RateUnitEnum( String description, int scale) {
        this.value = name();
        this.description = description;
        this.scale = scale;
    }

}
